Skip to content

feat(cdk/portal): add directives support to ComponentPortal#33142

Open
chintankavathia wants to merge 1 commit intoangular:mainfrom
chintankavathia:fix/component-portal-directives
Open

feat(cdk/portal): add directives support to ComponentPortal#33142
chintankavathia wants to merge 1 commit intoangular:mainfrom
chintankavathia:fix/component-portal-directives

Conversation

@chintankavathia
Copy link
Copy Markdown
Contributor

Added a directives property to ComponentPortal that gets passed through to createComponent in both DomPortalOutlet and CdkPortalOutlet. This allows applying directives to dynamically created components via portals.

Closes #33141

@chintankavathia chintankavathia force-pushed the fix/component-portal-directives branch 2 times, most recently from d12a48f to db53a21 Compare April 24, 2026 12:06
@chintankavathia chintankavathia marked this pull request as ready for review April 24, 2026 12:13
@pullapprove pullapprove Bot requested review from andrewseguin and tjshiu April 24, 2026 12:13
Added a `directives` property to `ComponentPortal` that gets passed
through to `createComponent` in both `DomPortalOutlet` and
`CdkPortalOutlet`. This allows applying directives to dynamically
created components via portals.

Closes angular#33141
@chintankavathia chintankavathia force-pushed the fix/component-portal-directives branch from db53a21 to d8caf17 Compare May 4, 2026 04:11
@angular-robot angular-robot Bot added the detected: feature PR contains a feature commit label May 4, 2026
@chintankavathia chintankavathia changed the title fix(cdk/portal): add directives support to ComponentPortal feat(cdk/portal): add directives support to ComponentPortal May 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: cdk/portal detected: feature PR contains a feature commit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(cdk/portal): ComponentPortal does not support applying directives when creating components

1 participant